projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28681e3
)
(delete-selection-pre-hook): Check if mouse-region-match is fbound
author
Juri Linkov
<juri@jurta.org>
Sat, 6 Oct 2007 22:19:12 +0000
(22:19 +0000)
committer
Juri Linkov
<juri@jurta.org>
Sat, 6 Oct 2007 22:19:12 +0000
(22:19 +0000)
to not fail on mouseless tty.
lisp/delsel.el
patch
|
blob
|
history
diff --git
a/lisp/delsel.el
b/lisp/delsel.el
index b4ae7965a3f660bc92aa9b2f8fc630c945541b99..82593985650735403041846c399f4561211fcf0f 100644
(file)
--- a/
lisp/delsel.el
+++ b/
lisp/delsel.el
@@
-93,6
+93,7
@@
any selection."
;; That would make yank a no-op.
(when (and (string= (buffer-substring-no-properties (point) (mark))
(car kill-ring))
+ (fboundp 'mouse-region-match)
(mouse-region-match))
(current-kill 1))
(delete-active-region))